* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	30.12.2021 	14:45:10 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	30.12.2021 	14:45:10 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	30.12.2021 	14:45:10 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	30.12.2021 	14:45:10 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	30.12.2021 	14:45:10 	lx 	(1. Application process)

  database connect time: 0.0006 seconds. 	30.12.2021 	14:45:10 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	30.12.2021 	14:45:10 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	30.12.2021 	14:45:10 	lx 	(1. Application process)

* preference 'system/nc_server_start.json', organization '0' was loaded from database 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	30.12.2021 	14:45:10 	lx 	(1. Application process)

error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:553: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	30.12.2021 	14:45:10 	lx 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	30.12.2021 	14:45:10 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

  database connect time: 0.0002 seconds. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0136ea2290, size: 400. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

All plugins have been loaded. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

--- server started in 0.0023 seconds, 2021-12-30 14:45:12, used memory 3103.3 kb --- 	 5. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	30.12.2021 	14:45:12 	lx 	(5. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-30 16:13:40
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 759
Content-Uncompressed-Length: 1113

LZ4. 	30.12.2021 	16:13:40 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	30.12.2021 	16:13:40 	lx 	(5. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	30.12.2021 	16:13:40 	lx 	(5. palvelin)

  database connect time: 0.0003 seconds. 	30.12.2021 	16:13:40 	lx 	(5. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	30.12.2021 	16:13:40 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	16:13:40 	_lx_ExecuteSqlNew 	(5. palvelin)

 1. answer time: 00:00:00.05287
  
SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id
 FROM invoice inv
 WHERE inv.invoice_id <> ''
 ORDER BY inv.invoice_id. 	30.12.2021 	16:13:42 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	16:13:42 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	16:13:44 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 030 bytes ***. 	30.12.2021 	16:13:47 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	16:13:47 	lx 	(5. palvelin)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' ORDER BY pr.product_id INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 338, first value: '__test'
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	30.12.2021 	16:14:37 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 931 bytes ***. 	30.12.2021 	16:15:44 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	16:15:44 	lx 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	30.12.2021 	16:16:38 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	16:16:38 	lx 	(5. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1122, first value: '3DFORMTECH'
 - query name: new:form/nc/erp-sync/query/company.json. 	30.12.2021 	16:23:03 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 5, send count: 4, loop count: 3, bytes sent 326640 / -72614 remaining, total send time 47 µs. 	30.12.2021 	16:23:03 	lx 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 874 bytes ***. 	30.12.2021 	17:20:17 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	17:20:17 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	17:20:29 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	17:20:31 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	17:20:33 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 8, send result: -1, send count: 2, loop count: 2, bytes sent 114324 / 16316 remaining, total send time 92 µs. 	30.12.2021 	17:20:34 	lx 	(5. palvelin)

 -- tcp answer 8, send count: 3, loop count: 3, bytes sent 195984 / -65344 remaining, total send time 1672 µs. 	30.12.2021 	17:20:34 	lx 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 030 bytes ***. 	30.12.2021 	17:20:35 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	17:20:35 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	17:23:54 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	17:23:56 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	17:23:58 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 023 bytes ***. 	30.12.2021 	17:24:01 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	17:24:01 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	17:25:59 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	17:26:01 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	17:26:03 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' ORDER BY pr.product_id INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 338, first value: '__test'
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	30.12.2021 	17:26:10 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1122, first value: '3DFORMTECH'
 - query name: new:form/nc/erp-sync/query/company.json. 	30.12.2021 	17:26:17 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 16, send count: 4, loop count: 3, bytes sent 326640 / -72614 remaining, total send time 56 µs. 	30.12.2021 	17:26:17 	lx 	(5. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1122, first value: '3DFORMTECH'
 - query name: new:form/nc/erp-sync/query/company.json. 	30.12.2021 	17:27:02 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 17, send count: 4, loop count: 3, bytes sent 326640 / -72623 remaining, total send time 17 µs. 	30.12.2021 	17:27:02 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	17:29:41 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	17:29:44 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	17:29:47 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 20, send result: -1, send count: 1, loop count: 1, bytes sent 81660 / 48228 remaining, total send time 66 µs. 	30.12.2021 	17:29:49 	lx 	(5. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1122, first value: '3DFORMTECH'
 - query name: new:form/nc/erp-sync/query/company.json. 	30.12.2021 	17:33:11 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 21, send count: 4, loop count: 3, bytes sent 326640 / -72614 remaining, total send time 45 µs. 	30.12.2021 	17:33:11 	lx 	(5. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1122, first value: '3DFORMTECH'
 - query name: new:form/nc/erp-sync/query/company.json. 	30.12.2021 	17:33:29 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 22, send count: 4, loop count: 3, bytes sent 326640 / -72614 remaining, total send time 551 µs. 	30.12.2021 	17:33:29 	lx 	(5. palvelin)

Sql field error, field number is not valid, field: 'pr.json_data.project_id', sql:
	SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number
 INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 	30.12.2021 	17:34:16 	_lx_ExecuteSqlNew 	(5. palvelin)

SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price  FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	30.12.2021 	17:34:16 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	17:38:19 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	17:38:21 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	17:38:23 	_lx_ExecuteSqlNew 	(5. palvelin)

Sql table name error, FROM table is not valid, sql: SELECT prf.name_id, prf.info, prf.record_id
 FROM preference prf
 WHERE prf.name_id <> ''
 ORDER BY prf.name_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3. 	30.12.2021 	17:38:29 	_lx_ExecuteSqlNew 	(5. palvelin)

SELECT prf.name_id, prf.info, prf.record_id  FROM preference prf  WHERE prf.name_id <> ''  ORDER BY prf.name_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/country.json. 	30.12.2021 	17:38:29 	_lx_ExecuteSqlNew 	(5. palvelin)

sql: Error 0, Table 'PREFERENCE' does not exist in the database. (SQLS 1101)
Failed to validate FROM clause. (SQLS 1702)
Failed to validate SELECT command. (SQLS 1726)
Table 'PREFERENCE' does not exist in the database.Failed to validate SELECT command. (SQLS 1101)

SELECT prf.name_id, prf.info, prf.record_id
 FROM preference prf
 WHERE prf.name_id <> ''
 ORDER BY prf.name_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3
'
SELECT prf.name_id, prf.info, prf.record_id
 FROM preference prf
 WHERE prf.name_id <> ''
 ORDER BY prf.name_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3
'
 	30.12.2021 	17:38:29 	_lx_ExecuteSqlNew 	(5. palvelin)

4d execute sql error -1: Error 0, Table 'PREFERENCE' does not exist in the database. (SQLS 1101)
Failed to validate FROM clause. (SQLS 1702)
Failed to validate SELECT command. (SQLS 1726)
Table 'PREFERENCE' does not exist in the database.Failed to validate SELECT command. (SQLS 1101)

SELECT prf.name_id, prf.info, prf.record_id
 FROM preference prf
 WHERE prf.name_id <> ''
 ORDER BY prf.name_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3. 	30.12.2021 	17:38:29 	_lx_SERVER 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 814 bytes ***. 	30.12.2021 	17:38:37 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	17:38:37 	lx 	(5. palvelin)

Sql table name error, FROM table is not valid, sql: SELECT prf.name_id, prf.info, prf.record_id
 FROM preference prf
 WHERE prf.name_id <> ''
 ORDER BY prf.name_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3. 	30.12.2021 	17:41:28 	_lx_ExecuteSqlNew 	(5. palvelin)

SELECT prf.name_id, prf.info, prf.record_id  FROM preference prf  WHERE prf.name_id <> ''  ORDER BY prf.name_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/country.json. 	30.12.2021 	17:41:28 	_lx_ExecuteSqlNew 	(5. palvelin)

sql: Error 0, Table 'PREFERENCE' does not exist in the database. (SQLS 1101)
Failed to validate FROM clause. (SQLS 1702)
Failed to validate SELECT command. (SQLS 1726)
Table 'PREFERENCE' does not exist in the database.Failed to validate SELECT command. (SQLS 1101)

SELECT prf.name_id, prf.info, prf.record_id
 FROM preference prf
 WHERE prf.name_id <> ''
 ORDER BY prf.name_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3
'
SELECT prf.name_id, prf.info, prf.record_id
 FROM preference prf
 WHERE prf.name_id <> ''
 ORDER BY prf.name_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3
'
 	30.12.2021 	17:41:28 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	30.12.2021 	17:42:32 	lx 	(5. palvelin)

closing socket '78'. 	30.12.2021 	17:42:32 	lx 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 814 bytes ***. 	30.12.2021 	17:43:43 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	17:43:43 	lx 	(5. palvelin)

Sql table name error, FROM table is not valid, sql: SELECT prf.name_id, prf.info, prf.record_id
 FROM preference prf
 WHERE prf.name_id <> ''
 ORDER BY prf.name_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3. 	30.12.2021 	17:43:47 	_lx_ExecuteSqlNew 	(5. palvelin)

SELECT prf.name_id, prf.info, prf.record_id  FROM preference prf  WHERE prf.name_id <> ''  ORDER BY prf.name_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/preference-country.json. 	30.12.2021 	17:43:47 	_lx_ExecuteSqlNew 	(5. palvelin)

sql: Error 0, Table 'PREFERENCE' does not exist in the database. (SQLS 1101)
Failed to validate FROM clause. (SQLS 1702)
Failed to validate SELECT command. (SQLS 1726)
Table 'PREFERENCE' does not exist in the database.Failed to validate SELECT command. (SQLS 1101)

SELECT prf.name_id, prf.info, prf.record_id
 FROM preference prf
 WHERE prf.name_id <> ''
 ORDER BY prf.name_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3
'
SELECT prf.name_id, prf.info, prf.record_id
 FROM preference prf
 WHERE prf.name_id <> ''
 ORDER BY prf.name_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3
'
 	30.12.2021 	17:43:47 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 819 bytes ***. 	30.12.2021 	17:44:40 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	17:44:40 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	17:46:42 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	17:46:44 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	17:46:47 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1122, first value: '3DFORMTECH'
 - query name: new:form/nc/erp-sync/query/company.json. 	30.12.2021 	17:48:34 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 33, send count: 4, loop count: 3, bytes sent 326640 / -72615 remaining, total send time 96 µs. 	30.12.2021 	17:48:34 	lx 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 873 bytes ***. 	30.12.2021 	17:50:57 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	17:50:57 	lx 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	30.12.2021 	17:52:35 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	17:52:35 	lx 	(5. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1122, first value: '3DFORMTECH'
 - query name: new:form/nc/erp-sync/query/company.json. 	30.12.2021 	17:52:41 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 34, send count: 3, loop count: 2, bytes sent 326640 / -72614 remaining, total send time 738 µs. 	30.12.2021 	17:52:41 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	30.12.2021 	17:54:34 	lx 	(5. palvelin)

closing socket '78'. 	30.12.2021 	17:54:34 	lx 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 868 bytes ***. 	30.12.2021 	17:55:09 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	17:55:09 	lx 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	30.12.2021 	17:56:36 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	17:56:36 	lx 	(5. palvelin)

Sql table name error, FROM table is not valid, sql: SELECT prf.name_id, prf.info, prf.record_id
 FROM preference prf
 WHERE prf.name_id <> '' AND prf.record_type = 'country'
 ORDER BY prf.name_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3. 	30.12.2021 	17:56:40 	_lx_ExecuteSqlNew 	(5. palvelin)

SELECT prf.name_id, prf.info, prf.record_id  FROM preference prf  WHERE prf.name_id <> '' AND prf.record_type = 'country'  ORDER BY prf.name_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/preference-country.json. 	30.12.2021 	17:56:40 	_lx_ExecuteSqlNew 	(5. palvelin)

sql: Error 0, Table 'PREFERENCE' does not exist in the database. (SQLS 1101)
Failed to validate FROM clause. (SQLS 1702)
Failed to validate SELECT command. (SQLS 1726)
Table 'PREFERENCE' does not exist in the database.Failed to validate SELECT command. (SQLS 1101)

SELECT prf.name_id, prf.info, prf.record_id
 FROM preference prf
 WHERE prf.name_id <> '' AND prf.record_type = 'country'
 ORDER BY prf.name_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3
'
SELECT prf.name_id, prf.info, prf.record_id
 FROM preference prf
 WHERE prf.name_id <> '' AND prf.record_type = 'country'
 ORDER BY prf.name_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3
'
 	30.12.2021 	17:56:40 	_lx_ExecuteSqlNew 	(5. palvelin)

4d execute sql error -1: Error 0, Table 'PREFERENCE' does not exist in the database. (SQLS 1101)
Failed to validate FROM clause. (SQLS 1702)
Failed to validate SELECT command. (SQLS 1726)
Table 'PREFERENCE' does not exist in the database.Failed to validate SELECT command. (SQLS 1101)

SELECT prf.name_id, prf.info, prf.record_id
 FROM preference prf
 WHERE prf.name_id <> '' AND prf.record_type = 'country'
 ORDER BY prf.name_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3. 	30.12.2021 	17:56:40 	_lx_SERVER 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 840 bytes ***. 	30.12.2021 	17:57:17 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	17:57:17 	lx 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	30.12.2021 	17:59:15 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	17:59:15 	lx 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	30.12.2021 	17:59:42 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	17:59:42 	lx 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	30.12.2021 	18:02:33 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	18:02:33 	lx 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	30.12.2021 	18:02:39 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	18:02:39 	lx 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	30.12.2021 	18:18:17 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	18:18:17 	lx 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	18:18:36 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	18:18:38 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.customer_project, inv.state, inv.our_reference, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_alExe1,:_lx_atExe3,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2480, first value: '000001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	30.12.2021 	18:18:39 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 027 bytes ***. 	30.12.2021 	18:20:31 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	18:20:31 	lx 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	30.12.2021 	18:23:25 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	18:23:25 	lx 	(5. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1122, first value: '3DFORMTECH'
 - query name: new:form/nc/erp-sync/query/company.json. 	30.12.2021 	18:24:12 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 39, send count: 4, loop count: 3, bytes sent 326640 / -72614 remaining, total send time 26 µs. 	30.12.2021 	18:24:12 	lx 	(5. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1122, first value: '3DFORMTECH'
 - query name: new:form/nc/erp-sync/query/company.json. 	30.12.2021 	18:40:12 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 40, send count: 4, loop count: 3, bytes sent 326640 / -72622 remaining, total send time 692 µs. 	30.12.2021 	18:40:12 	lx 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 872 bytes ***. 	30.12.2021 	18:57:59 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	18:57:59 	lx 	(5. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' ORDER BY co.company_id INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 1122, first value: '3DFORMTECH'
 - query name: new:form/nc/erp-sync/query/company.json. 	30.12.2021 	18:58:04 	_lx_ExecuteSqlNew 	(5. palvelin)

 -- tcp answer 41, send count: 3, loop count: 2, bytes sent 326640 / -72615 remaining, total send time 741 µs. 	30.12.2021 	18:58:04 	lx 	(5. palvelin)

*** tcp close for sock 72, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	30.12.2021 	18:58:17 	lx 	(5. palvelin)

closing socket '72'. 	30.12.2021 	18:58:17 	lx 	(5. palvelin)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	30.12.2021 	18:58:17 	lx 	(5. palvelin)

closing socket '73'. 	30.12.2021 	18:58:17 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          41
poll.fd_count:        1
pollCount:            653296
pollInCount:          66
pollOutCount:         0
pollCloseCount:       24
pollErrCount:         0
fd add/remove count:  27/26
totalBytesReceived:   39618
totalBytesSent:       2975115. 	30.12.2021 	18:58:17 	lx 	(5. palvelin)

warning: socket type 'number' is not a table, socket number: 77
. 	30.12.2021 	18:58:17 	lx 	(5. palvelin)

closing socket '77'. 	30.12.2021 	18:58:17 	lx 	(5. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x0136ea2290. 	30.12.2021 	18:58:17 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0136ea2290, size: 400. 	30.12.2021 	18:58:17 	lx 	(5. palvelin)

--- server stopped ---. 	30.12.2021 	18:58:17 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0136ea2290. 	30.12.2021 	18:58:18 	lx 	(5. palvelin)

